<template>
  <div class="nav">
    <ul>
      <router-link active-class="active" tag="div" to="/Home">
        首页
      </router-link>
      <router-link active-class="active" tag="div" to="/Service">
        全部服务
      </router-link>
      <router-link active-class="active" tag="div" to="/New">
        新闻
      </router-link>
      <router-link active-class="active" tag="div" to="/Personal">
        个人中心
      </router-link>
    </ul>
  </div>
</template>
<style lang="less" scoped>
.nav {
  width: 375px;
  height: 40px;
  position: fixed;
  bottom: 0;
  left: 0;
  ul {
    width: 100%;
    height: 100%;
    display: flex;
    background: aqua;
    div {
      flex: 1;
      font-size: 16px;
      text-align: center;
      line-height: 40px;
    }
  }
}
.active {
  color: red;
}
</style>
